#include "vectorfunctions.h"
#include <iostream>

int main()
{
	int a[10][10], b[10][10], c[10][10];
	int i, j, row, col;
	cout<<"Number of rows ";
	cin>>row;
	cout<<"Number of colons ";
	cin>>col;
	for (i=0; i<row; i++)
		for (j=0; j<col; j++){
			cout<<"a["<<i<<"]["<<j<<"]= ";
			cin>>a[i][j];	
		}
	for (i=0; i<row; i++)
		for (j=0; j<col; j++){
			cout<<"b["<<i<<"]["<<j<<"]= ";
			cin>>b[i][j];	
		}
	for (i=0; i<row; ++i)
		for (j=0; j<col; ++j)
			c[i][j]=max(a[i][j], b[i][j]);
	
	for (i=0; i<row; i++){
		for (j=0; j<col; j++)
			cout<<a[i][j]<<" ";
		cout<<endl;	
		}
	cout<<endl;
	for (i=0; i<row; i++){
		for (j=0; j<col; j++)
			cout<<b[i][j]<<" ";
		cout<<endl;	
		}
	cout<<endl;
	for (i=0; i<row; i++){
		for (j=0; j<col; j++)
			cout<<c[i][j]<<" ";
		cout<<endl;	
		}
	cout<<endl;

	
return 0;
}
